package com.songlanyun.modules.message.dao;

import com.songlanyun.modules.message.entity.PrivateMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.message.model.vo.UnreadMessageVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * app站内消息
 * 
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-03-04 16:05:09
 */
@Mapper
public interface PrivateMessageDao extends BaseMapper<PrivateMessage> {


    UnreadMessageVO countByType(Long userId, Integer type);

    UnreadMessageVO newInfo(Long userId, Integer type);

}
